<?php

require_once './interfaces/conso.interface.php';
	
	 class conso implements consoInterface{
	 	
	 	private $id;
	 	private $nom;
	 	private $prix;
	 	private $gain_energie;
	 	
	 	function conso($id){
	 		$conso = get_conso($id);
	 		$this->id = $conso['consommable_id'];
	 		$this->nom = $conso['consommable_nom'];
	 		$this->prix = $conso['consommable_prix'];
	 		$this->gain_energie = $conso['gain_energie'];
	 	}
	 	
	 	function get_all_consommables(){
	 		
	 	}
		
		function get_id(){
	 		return $this->id;
	 	}
		
		function get_nom(){
	 		return $this->nom;
	 	}
		
		function get_prix(){
	 		return $this->prix;
	 	}
		
		function get_gain_energie(){
	 		return $this->gain_energie;
	 	}
		 	
	 }
	 
?>